Object-oriented dictionary paths
Project description
About
Object-oriented dictionary paths
Key features
Traverse resources like paths
Access resources on demand with separate accessor layer
Usage
from dictpath import DictPath
d = {
"parts": {
"part1": {
"name": "Part One",
},
"part2": {
"name": "Part Two",
},
},
}
dp = DictPath(d)
# Concatenate paths with /
parts = dp / "parts"
# Stat path keys
"part2" in parts
# Open path dict
with parts.open() as parts_dict:
print(parts_dict)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dictpath-0.1.3.tar.gz
(8.1 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dictpath-0.1.3.tar.gz.
File metadata
- Download URL: dictpath-0.1.3.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
751cde3b76b176d25f961b90c423a11a4d5ede9bd09ab0d64a85abb738c190d8
|
|
| MD5 |
3689296482f781d6f8fc8092c0851837
|
|
| BLAKE2b-256 |
09c71a2f498a173e555ae54ede8bc904e3b73b37aa2a4d206cd475cb8df0738c
|
File details
Details for the file dictpath-0.1.3-py3-none-any.whl.
File metadata
- Download URL: dictpath-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5212361d1fb93909cff715f6e0404e17752cf7a48df3e140639e529a027c437
|
|
| MD5 |
c1df6d5c33eeec2ff035786ae1a1b003
|
|
| BLAKE2b-256 |
17e352ad487015c7a31cedcb14c0b1809893926e03cc8cc57c238b021f18dcd2
|
File details
Details for the file dictpath-0.1.3-py2-none-any.whl.
File metadata
- Download URL: dictpath-0.1.3-py2-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
225248e3c1e7c375495d5da5c390cbf3490f56ee42c151df733e5b2df6b521b5
|
|
| MD5 |
9718ce387950a8060d1616d1b7c58768
|
|
| BLAKE2b-256 |
140077f22064eedff6b998b56335a266da080d9cbeef66ba5f7f88de1c77f743
|